Fix shebang syntax in new libexec script
authorSimon McVittie <smcv@debian.org>
Mon, 7 Mar 2022 21:07:46 +0000 (21:07 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 7 Mar 2022 21:07:46 +0000 (21:07 +0000)
debian/patches/s390x-se-luks-gencpio-Fix-shebang-syntax.patch [new file with mode: 0644]
debian/patches/s390x-se-luks-gencpio-Use-interoperable-path-for-bash.patch
debian/patches/series

diff --git a/debian/patches/s390x-se-luks-gencpio-Fix-shebang-syntax.patch b/debian/patches/s390x-se-luks-gencpio-Fix-shebang-syntax.patch
new file mode 100644 (file)
index 0000000..645d6c5
--- /dev/null
@@ -0,0 +1,24 @@
+From: Simon McVittie <smcv@debian.org>
+Date: Mon, 7 Mar 2022 21:06:48 +0000
+Subject: s390x-se-luks-gencpio: Fix shebang syntax
+
+An indented `#!` is technically meaningless, although many shells will
+run text files with the shell if asked to execute them.
+
+Signed-off-by: Simon McVittie <smcv@debian.org>
+---
+ src/libostree/s390x-se-luks-gencpio | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/libostree/s390x-se-luks-gencpio b/src/libostree/s390x-se-luks-gencpio
+index f0ad24e..729aff6 100755
+--- a/src/libostree/s390x-se-luks-gencpio
++++ b/src/libostree/s390x-se-luks-gencpio
+@@ -1,5 +1,5 @@
+- #!/usr/bin/bash
+- # This script creates new initramdisk with LUKS config within
++#!/usr/bin/bash
++# This script creates new initramdisk with LUKS config within
+ set -euo pipefail
+ old_initrd=$1
index 24f55a2f7d4406f1ee48ac6cc06faae9295a137f..21f755fb500f013c368ec78c319ed753b544a495 100644 (file)
@@ -1,5 +1,5 @@
 From: Simon McVittie <smcv@debian.org>
-Date: Mon, 7 Mar 2022 19:23:09 +0000
+Date: Mon, 7 Mar 2022 21:07:25 +0000
 Subject: s390x-se-luks-gencpio: Use interoperable path for bash
 
 On OSs that do not consistently merge /usr/bin with /bin, the path to
@@ -11,12 +11,12 @@ Signed-off-by: Simon McVittie <smcv@debian.org>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/src/libostree/s390x-se-luks-gencpio b/src/libostree/s390x-se-luks-gencpio
-index f0ad24e..a62d43e 100755
+index 729aff6..7c94a44 100755
 --- a/src/libostree/s390x-se-luks-gencpio
 +++ b/src/libostree/s390x-se-luks-gencpio
 @@ -1,4 +1,4 @@
-- #!/usr/bin/bash
-+ #!/bin/bash
 # This script creates new initramdisk with LUKS config within
+-#!/usr/bin/bash
++#!/bin/bash
+ # This script creates new initramdisk with LUKS config within
  set -euo pipefail
  
index c2a5e54796b6096cd2806dbf60306a545eef7122..53aaf1d69c2418d8af0f6c984714e2ebf3c61fcb 100644 (file)
@@ -1,3 +1,4 @@
 debian/Skip-test-pull-repeated-during-CI.patch
+s390x-se-luks-gencpio-Fix-shebang-syntax.patch
 s390x-se-luks-gencpio-Use-interoperable-path-for-bash.patch
 test-prune-Read-to-the-end-of-cut-1-output.patch